package com.kele.mythread;

/**
 * @author chunhui.li
 * @date 2022/2/7 14:42
 * @Description 使用实现Runnable接口的方式创建线程
 * @ClassName ImRunableWay
 */
public class ImRunableWay implements Runnable {
    @Override
    public void run() {
        System.out.println("使用实现Runable接口的方式");
    }

    public static void main(String[] args) {
        ImRunableWay runableWay = new ImRunableWay();
        Thread thread = new Thread(runableWay,"run" );
        thread.start();
    }
}
